package com.qk.management.mapper;

import com.qk.entity.Activity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 *
 * @author MrZhao
 * @created 2025-10-14 16:27
 * @description 活动Mapper
 *
 */
@Mapper
public interface ActivityMapper {
    /**
     * 根据活动类型查询活动列表
     * @param type 活动类型
     * @return 活动列表
     */
    @Select("SELECT * FROM activity WHERE type = #{type}")
    List<Activity> selectByType(String type);
}
